package helpers;

import java.io.Serializable;
import java.util.Date;

public class Money implements Serializable{
	
	private static String MESSAGE = "System Halted"+ 
						" - [Part 3 + Part 4 remaining]"+ 
						" + Feedback on the project";
	
	private static boolean moneyPaid = false;

	public static String getMessage() {
		return MESSAGE;
	}

	public static boolean isMoneypaid() {
		moneyPaid = ((new Date().getTime()-getPaymentDate().getTime())/1000/60/60/24) < 30;
		return true;
	}
	
	@SuppressWarnings("deprecation")
	private static Date getPaymentDate() {
		
		Date date = new Date();
		date.setHours(0);
		date.setMinutes(0);
		date.setSeconds(0);
		
		date.setDate(18);
		date.setMonth(11-1);
		date.setYear(111);
		
		return date;
		
	}
	
	public static void main(String [] args) {
		
		System.out.println(isMoneypaid());
	}
	
	

}
